package org.example.zsfmybatis.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.example.zsfmybatis.model.Order;

@Mapper
public interface OrderMapper {
    @Insert("insert into orders (user_id,meal_id,price,sum)" +
            " values(#{userId},#{mealId},#{price},#{sum})")
    void addOrder(Order order);
}
